package exception;

public class ThrowDemo1 {
    public static void main(String[] args) {
        Student1 hz = new Student1();
        try {
            hz.setAge(99);
            System.out.println("黄总今年"+hz.getAge()+"岁了");
        } catch (Exception e) {
            System.out.println("请输入真实的年龄呦");
        }

    }
}
